import Vue from 'vue/dist/vue.js'
import App from './App.vue' 
import vue from 'vue/dist/vue.js'
import router from './router/index.js'

Vue.config.productionTip = false

new Vue({
  // el: '#app',
  // render: h => h(App),
  // components: { 
  //   App 
  // },
  // template: '<App/>',
  // render(e){
  //   console.log(e);
  //   return e('h1','你好')
  // }
  render: e => e(App),    //多个参数或者没有参数时  要加（）
  router,
  created(){
    //安装了全局事件总线
    Vue.prototype.$bus = this;


    console.log('脚手架初始化完成');
    console.log(process.env);
    console.log(process.env.VUE_APP_NAME);
    console.log(process.env.VUE_APP_ENV_DESC);
    console.log(process.env.VUE_APP_BASE_API);
    console.log(process.env.aa);
    
  },
}).$mount('#app')
